var express = require('express');
var router = express.Router();
const userController = require('../controller/UserController');

/* GET users listing. */
// router.get('/', function(req, res, next) {
//   res.send('respond with a resource');
// });

// router.get('/list', userController.list);//获取全部列表
router.post('/add', userController.add);//增加
// router.get('/del', userController.del);//删除
// router.put('/update', userController.update);//修改
// router.get('/search', userController.search);//查询
router.post("/login", userController.login);


module.exports = router;
